<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

<div style="border: 1px solid #ccc; padding: 5px; margin-bottom: 20px;">

	<a href="${pageContext.request.contextPath}/welcome">Home</a> | &nbsp;

	<a href="${pageContext.request.contextPath}/userInfo">User Info</a> |
	&nbsp; <a href="${pageContext.request.contextPath}/admin">Admin</a>

	<c:if test="${pageContext.request.userPrincipal.name != null}">
  
     | &nbsp;
     <a href="${pageContext.request.contextPath}/logout">Logout</a>

	</c:if>

</div>

<div class="menu-container">

	<a href="${pageContext.request.contextPath}/">Home</a> | <a
		href="${pageContext.request.contextPath}/productList"> Product
		List </a> | <a href="${pageContext.request.contextPath}/shoppingCart">
		My Cart </a> |
	<security:authorize access="hasAnyRole('ROLE_MANAGER','ROLE_EMPLOYEE')">
		<a href="${pageContext.request.contextPath}/orderList"> Order List
		</a>
     |
   </security:authorize>

	<security:authorize access="hasRole('ROLE_MANAGER')">
		<a href="${pageContext.request.contextPath}/product"> Create
			Product </a>
         |
   </security:authorize>

</div>